package com.ruoyi.wms.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 物料使用量对象 wms_materialuse
 * 
 * @author chao
 * @date 2024-07-28
 */
public class WmsMaterialuse extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 物料ID */
    private Long materialId;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String name;

    /** 规格/型号 */
    @Excel(name = "规格/型号")
    private String model;

    /** 使用量 */
    @Excel(name = "使用量")
    private Double useStock;

    /** 单位 */
    @Excel(name = "单位")
    private String unitName;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "使用时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createtime;

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    /** 状态 */
    private String status;

    /** 备注 */
    @Excel(name = "备注")
    private String common;

    public Long getMaterialId() {
        return materialId;
    }

    public void setMaterialId(Long materialId) {
        this.materialId = materialId;
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }

    public void setUseStock(Double useStock) 
    {
        this.useStock = useStock;
    }

    public Double getUseStock() 
    {
        return useStock;
    }

    public void setUnitName(String unitName) 
    {
        this.unitName = unitName;
    }

    public String getUnitName() 
    {
        return unitName;
    }

    public void setCommon(String common) 
    {
        this.common = common;
    }

    public String getCommon() 
    {
        return common;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
                .append("materialId", getMaterialId())
            .append("name", getName())
            .append("model", getModel())
            .append("useStock", getUseStock())
            .append("unitName", getUnitName())
            .append("createtime", getCreatetime())
            .append("common", getCommon())
            .toString();
    }
}
